﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Convert.aspx.cs" Inherits="Convert" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <textarea style="width: 754px; height: 116px" id="t1">
        </textarea>
    </div>
    <div>
        <input id="Button1" type="button" value="button" onclick="convertdata();"/></div>
    <div>
        <textarea style="width: 754px; height: 116px" id="t2">
        </textarea>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function convertdata() {
        document.getElementById("t2").value = document.getElementById("t1").value.replace(/\r\n/ig, "");
        //document.getElementById("t2").value = document.getElementById("t2").value.replace(/\n/ig, "")
        document.getElementById("t2").value = document.getElementById("t2").value.replace(/\t/ig, "")
        //document.getElementById("t2").value = document.getElementById("t2").value.replace("\t", "")

    }
</script>
